package com.sasis.webapp.dwr;

import com.sasis.model.SwitchRecord;
import com.sasis.service.SwitchRecordManager;

public class SwitchRecordRemote {
	private SwitchRecordManager switchRecordManager;

	public void setSwitchRecordManager(SwitchRecordManager switchRecordManager) {
		this.switchRecordManager = switchRecordManager;
	}

	public boolean deleteRecord(String[] ids) {
		SwitchRecord record = new SwitchRecord();
		if (null != ids && 0 != ids.length) {
			record.setIds(ids);
			switchRecordManager.removeSwitchRecord(record);
		}
		return true;

	}

}
